home *** CD-ROM | disk | FTP | other *** search
/ Virtual Top Model / Virtual Top Model - Disc 1.iso / modulos / mod-3.dxr / 00001_Movie script.ls next >
Encoding:
Text File  |  1997-04-01  |  4.3 KB  |  179 lines

  1. on startMovie
  2.   global bVrPlay, NumCd
  3.   set NumCd to 2
  4.   set bVrPlay to 0
  5. end
  6.  
  7. on stopMovie
  8.   if objectp(objMovie) then
  9.     objMovie(mdispose)
  10.     closeXLib()
  11.   end if
  12. end
  13.  
  14. on snapshot v1, h1, v2, h2
  15.   global sPathIni, sMensaje01
  16.   if azReadDir(sPathIni & "snapshot\*.*") = [] then
  17.     if not azCreatDir(sPathIni & "snapshot") then
  18.       alert("Unable to create directory")
  19.     end if
  20.   end if
  21.   openXLib(sPathIni & "Capture.dll")
  22.   openXLib(sPathIni & "Fileio.dll")
  23.   set oGrab to Capture(mnew, v1 + the stageTop, h1 + the stageLeft, v2 + the stageTop, h2 + the stageLeft)
  24.   set bLleno to 0
  25.   repeat with xx = 0 to 100
  26.     if xx = 100 then
  27.       set bLleno to 1
  28.     end if
  29.     set sOrden to string(xx)
  30.     if xx < 10 then
  31.       set sOrden to "0" & sOrden
  32.     end if
  33.     set sFitxer to sPathIni & "snapshot\vtm_fp" & sOrden & ".BMP"
  34.     set oFitxer to fileio(mnew, "read", sFitxer)
  35.     if objectp(oFitxer) then
  36.       oFitxer(mdispose)
  37.       next repeat
  38.     end if
  39.     if oFitxer = -43 then
  40.       set xx to 101
  41.     end if
  42.   end repeat
  43.   closeXLib(sPathIni & "Fileio.dll")
  44.   if bLleno then
  45.     alert(sMensaje01)
  46.   else
  47.     oGrab(mSave, sFitxer)
  48.   end if
  49.   oGrab(mdispose)
  50.   closeXLib(sPathIni & "Capture.dll")
  51. end
  52.  
  53. on coordenadas
  54.   put "if the mouseV >= " & the locV of sprite 4 & " and the mouseH >= " & the locH of sprite 4 & " and the mouseV <= " & the locV of sprite 4 + the height of sprite 4 & " and the mouseH <= " & the locH of sprite 4 + the width of sprite 4 & " then"
  55. end
  56.  
  57. on ayuda sMember
  58.   global bAyuda, nIdioma
  59.   if bAyuda then
  60.     set the member of sprite 47 to member sMember of castLib ("mensajes" & nIdioma)
  61.     set the visible of sprite 47 to 1
  62.     updateStage()
  63.   end if
  64. end
  65.  
  66. on boton nSprite, sPrefijo, nMaxBolas, sMember
  67.   global nContTiempo, bAyuda
  68.   if nSprite > 24 then
  69.     set nBola to 29
  70.   else
  71.     set nBola to 23
  72.   end if
  73.   repeat while rollOver(nSprite) and not (the mouseDown)
  74.     if nContTiempo = 0 then
  75.       set nContTiempo to the timer
  76.     end if
  77.     puppetSprite(nBola, 1)
  78.     set sMiembro to sPrefijo & "1"
  79.     set the member of sprite nBola to member sMiembro of castLib "elementos graficos"
  80.     updateStage()
  81.     if the timer > (nContTiempo + 80) then
  82.       set nCont to 1
  83.       set nFactor to 1
  84.       repeat while rollOver(nSprite) and not (the mouseDown)
  85.         set nCont to nCont + nFactor
  86.         if (nCont > nMaxBolas) or (nCont <= 0) then
  87.           if nSprite = 22 then
  88.             if nCont > nMaxBolas then
  89.               set nCont to nMaxBolas - 1
  90.             else
  91.               set nCont to 2
  92.             end if
  93.             set nFactor to nFactor * -1
  94.           else
  95.             set nCont to 1
  96.           end if
  97.         end if
  98.         set sMiembro to sPrefijo & nCont
  99.         set the member of sprite nBola to member sMiembro of castLib "elementos graficos"
  100.         updateStage()
  101.         startTimer()
  102.         repeat while rollOver(nSprite) and (the timer < 7)
  103.           nothing()
  104.         end repeat
  105.       end repeat
  106.     end if
  107.     puppetSprite(nBola, 0)
  108.   end repeat
  109. end
  110.  
  111. on roll
  112.   repeat with xx = 10 to 28
  113.     if rollOver(xx) then
  114.       return xx
  115.     end if
  116.   end repeat
  117. end
  118.  
  119. on rollboton
  120.   global bVideoNormal, nContTiempo
  121.   set nContTiempo to 0
  122.   case roll() of
  123.     10:
  124.       ayuda("volumen")
  125.     11:
  126.       if bVideoNormal then
  127.         ayuda("video reducido")
  128.       else
  129.         ayuda("video normal")
  130.       end if
  131.     12:
  132.       ayuda("salida")
  133.     13:
  134.       ayuda("panic")
  135.     14:
  136.       ayuda("ayuda")
  137.     15:
  138.       ayuda("modulo 8")
  139.       boton(15, "CD2 ", 16, "modulo 8")
  140.     16:
  141.       ayuda("modulo 7")
  142.       boton(16, "CD2 ", 16, "modulo 7")
  143.     17:
  144.       ayuda("modulo 6")
  145.       boton(17, "CD2 ", 16, "modulo 6")
  146.     18:
  147.       ayuda("modulo 5")
  148.       boton(18, "CD2 ", 16, "modulo 5")
  149.     19:
  150.       ayuda("modulo 4")
  151.       boton(19, "FOTO-", 8, "modulo 4")
  152.     20:
  153.       ayuda("modulo 3")
  154.       boton(20, "Mov_UVR_1/", 9, "modulo 3")
  155.     21:
  156.       ayuda("modulo 2")
  157.       boton(21, "PASEFOTOS-", 18, "modulo 2")
  158.     22:
  159.       ayuda("modulo 1")
  160.       boton(22, "Strip ", 9, "modulo 1")
  161.     24:
  162.       ayuda("1.1")
  163.     25:
  164.       ayuda("VR4")
  165.       boton(25, "UVR_4/", 9, "VR4")
  166.     26:
  167.       ayuda("VR3")
  168.       boton(26, "UVR_3/", 9, "VR3")
  169.     27:
  170.       ayuda("VR2")
  171.       boton(27, "UVR_2/", 9, "VR2")
  172.     28:
  173.       ayuda("VR1")
  174.       boton(28, "UVR_1/", 8, "VR1")
  175.     otherwise:
  176.       set the visible of sprite 47 to 0
  177.   end case
  178. end
  179.